/**
 * 带有单个路由的基本控制器示例
 */
import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { CatsService } from './cats/cats.service';

@Controller()
export class AppController {
  constructor(
    private readonly appService: AppService,
    private readonly catsService: CatsService,
  ) {}

  @Get()
  getHello(): string {
    return (
      this.appService.getHello() + JSON.stringify(this.catsService.findAll())
    );
  }
}
